package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.bac.BacAntClassDto;
import com.ysd.lis.request.bac.BacAntClassParam;
import com.ysd.lis.service.bac.BacSensitiveResultRuleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2025-03-08
 */
@Api(tags = "天然耐药规则")
@RestController
@RequestMapping("/bac/ant/sensitiveResultRule")
public class BacSensitiveResultRuleController extends BaseController {

    @Autowired
    BacSensitiveResultRuleService bacSensitiveResultRuleService;
    @ApiOperation("查询")
    @GetMapping("/findSensitiveResultRuleList")
    public Result findSensitiveResultRuleList(BacAntClassParam param){
        return bacSensitiveResultRuleService.findSensitiveResultRuleList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateSensitiveResultRule")
    public Result saveOrUpdateSensitiveResultRule(@RequestBody BacAntClassDto dto) {
        return bacSensitiveResultRuleService.saveOrUpdateSensitiveResultRule(dto);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteSensitiveResultRule")
    public Result batchDeleteSensitiveResultRule(@RequestBody BacAntClassDto dto){
        return  bacSensitiveResultRuleService.batchDeleteSensitiveResultRule(dto);
    }


}
